package com.he.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 泛型，返回结果包装
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> implements Serializable {
    //代码
    private Integer code;

    //信息
    private String message;

    //返回数据
    private T result;

    public CommonResult(int i, String 错误, Object o) {
    }
}
